package br.com.application.dao;

import android.database.sqlite.SQLiteDatabase;

public class DAOSQLite {

	private SQLiteDatabase banco;
	public static final String DBNAME ="dbb4a";
	
	public DAOSQLite(SQLiteDatabase banco){
		this.banco = banco;
	}
	
	public boolean createTables(){
		try{
			banco.execSQL(  " CREATE TABLE IF NOT EXISTS STUDENTS (       " +
							" REGISTRATION VARCHAR(10) PRIMARY KEY,      " +
					        " NAME VARCHAR(80),                          " +
							" COURSE INTEGER,                            " +
					        " PERIOD INTEGER                             "+
							" );");
			
			return true;
		}catch (Exception e) {
			e.printStackTrace();
			return false;
		}
	}
	
}
